package com.ruoyi.product.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;

@Data
@ApiModel("购物车新增参数")
public class ProductCartAddParam {

    @NotNull(message = "添加数量不能为空")
    @ApiModelProperty("商品数量（最终值）")
    private Integer addNum;

    @NotNull(message = "价格id不能为空")
    @ApiModelProperty("商品价格id（通过这个id能获取到商品价格单位，原价，现价）")
    private String priceId;
}
